3.1.21 \(\int \frac {(e x)^m (a+b x^n)^4 (A+B x^n)}{c+d x^n} \, dx\) [21]

Optimal. Leaf size=380 \[ \frac {b \left (4 a^3 B d^3-b^3 c^2 (B c-A d)+4 a b^2 c d (B c-A d)-6 a^2 b d^2 (B c-A d)\right ) x^{1+n} (e x)^m}{d^4 (1+m+n)}+\frac {b^2 \left (6 a^2 B d^2+b^2 c (B c-A d)-4 a b d (B c-A d)\right ) x^{1+2 n} (e x)^m}{d^3 (1+m+2 n)}-\frac {b^3 (b B c-A b d-4 a B d) x^{1+3 n} (e x)^m}{d^2 (1+m+3 n)}+\frac {b^4 B x^{1+4 n} (e x)^m}{d (1+m+4 n)}+\frac {\left (a^4 B d^4+b^4 c^3 (B c-A d)-4 a b^3 c^2 d (B c-A d)+6 a^2 b^2 c d^2 (B c-A d)-4 a^3 b d^3 (B c-A d)\right ) (e x)^{1+m}}{d^5 e (1+m)}-\frac {(b c-a d)^4 (B c-A d) (e x)^{1+m} \, _2F_1\left (1,\frac {1+m}{n};\frac {1+m+n}{n};-\frac {d x^n}{c}\right )}{c d^5 e (1+m)} \]

[Out]

b*(4*a^3*B*d^3-b^3*c^2*(-A*d+B*c)+4*a*b^2*c*d*(-A*d+B*c)-6*a^2*b*d^2*(-A*d+B*c))*x^(1+n)*(e*x)^m/d^4/(1+m+n)+b
^2*(6*a^2*B*d^2+b^2*c*(-A*d+B*c)-4*a*b*d*(-A*d+B*c))*x^(1+2*n)*(e*x)^m/d^3/(1+m+2*n)-b^3*(-A*b*d-4*B*a*d+B*b*c
)*x^(1+3*n)*(e*x)^m/d^2/(1+m+3*n)+b^4*B*x^(1+4*n)*(e*x)^m/d/(1+m+4*n)+(a^4*B*d^4+b^4*c^3*(-A*d+B*c)-4*a*b^3*c^
2*d*(-A*d+B*c)+6*a^2*b^2*c*d^2*(-A*d+B*c)-4*a^3*b*d^3*(-A*d+B*c))*(e*x)^(1+m)/d^5/e/(1+m)-(-a*d+b*c)^4*(-A*d+B
*c)*(e*x)^(1+m)*hypergeom([1, (1+m)/n],[(1+m+n)/n],-d*x^n/c)/c/d^5/e/(1+m)

________________________________________________________________________________________

Rubi [A]
time = 0.41, antiderivative size = 380, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 4, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.129, Rules used = {584, 20, 30, 371} \begin {gather*} \frac {b^2 x^{2 n+1} (e x)^m \left (6 a^2 B d^2-4 a b d (B c-A d)+b^2 c (B c-A d)\right )}{d^3 (m+2 n+1)}+\frac {b x^{n+1} (e x)^m \left (4 a^3 B d^3-6 a^2 b d^2 (B c-A d)+4 a b^2 c d (B c-A d)+b^3 \left (-c^2\right ) (B c-A d)\right )}{d^4 (m+n+1)}+\frac {(e x)^{m+1} \left (a^4 B d^4-4 a^3 b d^3 (B c-A d)+6 a^2 b^2 c d^2 (B c-A d)-4 a b^3 c^2 d (B c-A d)+b^4 c^3 (B c-A d)\right )}{d^5 e (m+1)}-\frac {b^3 x^{3 n+1} (e x)^m (-4 a B d-A b d+b B c)}{d^2 (m+3 n+1)}-\frac {(e x)^{m+1} (b c-a d)^4 (B c-A d) \, _2F_1\left (1,\frac {m+1}{n};\frac {m+n+1}{n};-\frac {d x^n}{c}\right )}{c d^5 e (m+1)}+\frac {b^4 B x^{4 n+1} (e x)^m}{d (m+4 n+1)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((e*x)^m*(a + b*x^n)^4*(A + B*x^n))/(c + d*x^n),x]

[Out]

(b*(4*a^3*B*d^3 - b^3*c^2*(B*c - A*d) + 4*a*b^2*c*d*(B*c - A*d) - 6*a^2*b*d^2*(B*c - A*d))*x^(1 + n)*(e*x)^m)/
(d^4*(1 + m + n)) + (b^2*(6*a^2*B*d^2 + b^2*c*(B*c - A*d) - 4*a*b*d*(B*c - A*d))*x^(1 + 2*n)*(e*x)^m)/(d^3*(1
+ m + 2*n)) - (b^3*(b*B*c - A*b*d - 4*a*B*d)*x^(1 + 3*n)*(e*x)^m)/(d^2*(1 + m + 3*n)) + (b^4*B*x^(1 + 4*n)*(e*
x)^m)/(d*(1 + m + 4*n)) + ((a^4*B*d^4 + b^4*c^3*(B*c - A*d) - 4*a*b^3*c^2*d*(B*c - A*d) + 6*a^2*b^2*c*d^2*(B*c
 - A*d) - 4*a^3*b*d^3*(B*c - A*d))*(e*x)^(1 + m))/(d^5*e*(1 + m)) - ((b*c - a*d)^4*(B*c - A*d)*(e*x)^(1 + m)*H
ypergeometric2F1[1, (1 + m)/n, (1 + m + n)/n, -((d*x^n)/c)])/(c*d^5*e*(1 + m))

Rule 20

Int[(u_.)*((a_.)*(v_))^(m_)*((b_.)*(v_))^(n_), x_Symbol] :> Dist[b^IntPart[n]*((b*v)^FracPart[n]/(a^IntPart[n]
*(a*v)^FracPart[n])), Int[u*(a*v)^(m + n), x], x] /; FreeQ[{a, b, m, n}, x] &&  !IntegerQ[m] &&  !IntegerQ[n]
&&  !IntegerQ[m + n]

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rule 371

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[a^p*((c*x)^(m + 1)/(c*(m + 1)))*Hyperg
eometric2F1[-p, (m + 1)/n, (m + 1)/n + 1, (-b)*(x^n/a)], x] /; FreeQ[{a, b, c, m, n, p}, x] &&  !IGtQ[p, 0] &&
 (ILtQ[p, 0] || GtQ[a, 0])

Rule 584

Int[((g_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.)*((e_) + (f_.)*(x_)^(n_))^
(r_.), x_Symbol] :> Int[ExpandIntegrand[(g*x)^m*(a + b*x^n)^p*(c + d*x^n)^q*(e + f*x^n)^r, x], x] /; FreeQ[{a,
 b, c, d, e, f, g, m, n}, x] && IGtQ[p, -2] && IGtQ[q, 0] && IGtQ[r, 0]

Rubi steps

\begin {align*} \int \frac {(e x)^m \left (a+b x^n\right )^4 \left (A+B x^n\right )}{c+d x^n} \, dx &=\int \left (\frac {\left (a^4 B d^4+b^4 c^3 (B c-A d)-4 a b^3 c^2 d (B c-A d)+6 a^2 b^2 c d^2 (B c-A d)-4 a^3 b d^3 (B c-A d)\right ) (e x)^m}{d^5}+\frac {b \left (4 a^3 B d^3-b^3 c^2 (B c-A d)+4 a b^2 c d (B c-A d)-6 a^2 b d^2 (B c-A d)\right ) x^n (e x)^m}{d^4}+\frac {b^2 \left (6 a^2 B d^2+b^2 c (B c-A d)-4 a b d (B c-A d)\right ) x^{2 n} (e x)^m}{d^3}+\frac {b^3 (-b B c+A b d+4 a B d) x^{3 n} (e x)^m}{d^2}+\frac {b^4 B x^{4 n} (e x)^m}{d}+\frac {(-b c+a d)^4 (-B c+A d) (e x)^m}{d^5 \left (c+d x^n\right )}\right ) \, dx\\ &=\frac {\left (a^4 B d^4+b^4 c^3 (B c-A d)-4 a b^3 c^2 d (B c-A d)+6 a^2 b^2 c d^2 (B c-A d)-4 a^3 b d^3 (B c-A d)\right ) (e x)^{1+m}}{d^5 e (1+m)}+\frac {\left (b^4 B\right ) \int x^{4 n} (e x)^m \, dx}{d}-\frac {\left ((b c-a d)^4 (B c-A d)\right ) \int \frac {(e x)^m}{c+d x^n} \, dx}{d^5}-\frac {\left (b^3 (b B c-A b d-4 a B d)\right ) \int x^{3 n} (e x)^m \, dx}{d^2}+\frac {\left (b^2 \left (6 a^2 B d^2+b^2 c (B c-A d)-4 a b d (B c-A d)\right )\right ) \int x^{2 n} (e x)^m \, dx}{d^3}+\frac {\left (b \left (4 a^3 B d^3-b^3 c^2 (B c-A d)+4 a b^2 c d (B c-A d)-6 a^2 b d^2 (B c-A d)\right )\right ) \int x^n (e x)^m \, dx}{d^4}\\ &=\frac {\left (a^4 B d^4+b^4 c^3 (B c-A d)-4 a b^3 c^2 d (B c-A d)+6 a^2 b^2 c d^2 (B c-A d)-4 a^3 b d^3 (B c-A d)\right ) (e x)^{1+m}}{d^5 e (1+m)}-\frac {(b c-a d)^4 (B c-A d) (e x)^{1+m} \, _2F_1\left (1,\frac {1+m}{n};\frac {1+m+n}{n};-\frac {d x^n}{c}\right )}{c d^5 e (1+m)}+\frac {\left (b^4 B x^{-m} (e x)^m\right ) \int x^{m+4 n} \, dx}{d}-\frac {\left (b^3 (b B c-A b d-4 a B d) x^{-m} (e x)^m\right ) \int x^{m+3 n} \, dx}{d^2}+\frac {\left (b^2 \left (6 a^2 B d^2+b^2 c (B c-A d)-4 a b d (B c-A d)\right ) x^{-m} (e x)^m\right ) \int x^{m+2 n} \, dx}{d^3}+\frac {\left (b \left (4 a^3 B d^3-b^3 c^2 (B c-A d)+4 a b^2 c d (B c-A d)-6 a^2 b d^2 (B c-A d)\right ) x^{-m} (e x)^m\right ) \int x^{m+n} \, dx}{d^4}\\ &=\frac {b \left (4 a^3 B d^3-b^3 c^2 (B c-A d)+4 a b^2 c d (B c-A d)-6 a^2 b d^2 (B c-A d)\right ) x^{1+n} (e x)^m}{d^4 (1+m+n)}+\frac {b^2 \left (6 a^2 B d^2+b^2 c (B c-A d)-4 a b d (B c-A d)\right ) x^{1+2 n} (e x)^m}{d^3 (1+m+2 n)}-\frac {b^3 (b B c-A b d-4 a B d) x^{1+3 n} (e x)^m}{d^2 (1+m+3 n)}+\frac {b^4 B x^{1+4 n} (e x)^m}{d (1+m+4 n)}+\frac {\left (a^4 B d^4+b^4 c^3 (B c-A d)-4 a b^3 c^2 d (B c-A d)+6 a^2 b^2 c d^2 (B c-A d)-4 a^3 b d^3 (B c-A d)\right ) (e x)^{1+m}}{d^5 e (1+m)}-\frac {(b c-a d)^4 (B c-A d) (e x)^{1+m} \, _2F_1\left (1,\frac {1+m}{n};\frac {1+m+n}{n};-\frac {d x^n}{c}\right )}{c d^5 e (1+m)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 1.10, size = 290, normalized size = 0.76 \begin {gather*} x (e x)^m \left (\frac {(b c-a d)^4 (B c-A d)}{c d^5 (1+m)}+\frac {a^4 A}{c+c m}+\frac {b \left (4 a^3 B d^3+4 a b^2 c d (B c-A d)+b^3 c^2 (-B c+A d)+6 a^2 b d^2 (-B c+A d)\right ) x^n}{d^4 (1+m+n)}+\frac {b^2 \left (6 a^2 B d^2+b^2 c (B c-A d)+4 a b d (-B c+A d)\right ) x^{2 n}}{d^3 (1+m+2 n)}+\frac {b^3 (-b B c+A b d+4 a B d) x^{3 n}}{d^2 (1+m+3 n)}+\frac {b^4 B x^{4 n}}{d+d m+4 d n}+\frac {(b c-a d)^4 (-B c+A d) \, _2F_1\left (1,\frac {1+m}{n};\frac {1+m+n}{n};-\frac {d x^n}{c}\right )}{c d^5 (1+m)}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((e*x)^m*(a + b*x^n)^4*(A + B*x^n))/(c + d*x^n),x]

[Out]

x*(e*x)^m*(((b*c - a*d)^4*(B*c - A*d))/(c*d^5*(1 + m)) + (a^4*A)/(c + c*m) + (b*(4*a^3*B*d^3 + 4*a*b^2*c*d*(B*
c - A*d) + b^3*c^2*(-(B*c) + A*d) + 6*a^2*b*d^2*(-(B*c) + A*d))*x^n)/(d^4*(1 + m + n)) + (b^2*(6*a^2*B*d^2 + b
^2*c*(B*c - A*d) + 4*a*b*d*(-(B*c) + A*d))*x^(2*n))/(d^3*(1 + m + 2*n)) + (b^3*(-(b*B*c) + A*b*d + 4*a*B*d)*x^
(3*n))/(d^2*(1 + m + 3*n)) + (b^4*B*x^(4*n))/(d + d*m + 4*d*n) + ((b*c - a*d)^4*(-(B*c) + A*d)*Hypergeometric2
F1[1, (1 + m)/n, (1 + m + n)/n, -((d*x^n)/c)])/(c*d^5*(1 + m)))

________________________________________________________________________________________

Maple [F]
time = 0.08, size = 0, normalized size = 0.00 \[\int \frac {\left (e x \right )^{m} \left (a +b \,x^{n}\right )^{4} \left (A +B \,x^{n}\right )}{c +d \,x^{n}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*x)^m*(a+b*x^n)^4*(A+B*x^n)/(c+d*x^n),x)

[Out]

int((e*x)^m*(a+b*x^n)^4*(A+B*x^n)/(c+d*x^n),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x)^m*(a+b*x^n)^4*(A+B*x^n)/(c+d*x^n),x, algorithm="maxima")

[Out]

((b^4*c^4*d*e^m - 4*a*b^3*c^3*d^2*e^m + 6*a^2*b^2*c^2*d^3*e^m - 4*a^3*b*c*d^4*e^m + a^4*d^5*e^m)*A - (b^4*c^5*
e^m - 4*a*b^3*c^4*d*e^m + 6*a^2*b^2*c^3*d^2*e^m - 4*a^3*b*c^2*d^3*e^m + a^4*c*d^4*e^m)*B)*integrate(x^m/(d^6*x
^n + c*d^5), x) + ((m^4*e^m + 2*m^3*(3*n + 2)*e^m + (11*n^2 + 18*n + 6)*m^2*e^m + 2*(3*n^3 + 11*n^2 + 9*n + 2)
*m*e^m + (6*n^3 + 11*n^2 + 6*n + 1)*e^m)*B*b^4*d^4*x*e^(m*log(x) + 4*n*log(x)) - (((m^4*e^m + 2*m^3*(5*n + 2)*
e^m + (35*n^2 + 30*n + 6)*m^2*e^m + 2*(25*n^3 + 35*n^2 + 15*n + 2)*m*e^m + (24*n^4 + 50*n^3 + 35*n^2 + 10*n +
1)*e^m)*b^4*c^3*d - 4*(m^4*e^m + 2*m^3*(5*n + 2)*e^m + (35*n^2 + 30*n + 6)*m^2*e^m + 2*(25*n^3 + 35*n^2 + 15*n
 + 2)*m*e^m + (24*n^4 + 50*n^3 + 35*n^2 + 10*n + 1)*e^m)*a*b^3*c^2*d^2 + 6*(m^4*e^m + 2*m^3*(5*n + 2)*e^m + (3
5*n^2 + 30*n + 6)*m^2*e^m + 2*(25*n^3 + 35*n^2 + 15*n + 2)*m*e^m + (24*n^4 + 50*n^3 + 35*n^2 + 10*n + 1)*e^m)*
a^2*b^2*c*d^3 - 4*(m^4*e^m + 2*m^3*(5*n + 2)*e^m + (35*n^2 + 30*n + 6)*m^2*e^m + 2*(25*n^3 + 35*n^2 + 15*n + 2
)*m*e^m + (24*n^4 + 50*n^3 + 35*n^2 + 10*n + 1)*e^m)*a^3*b*d^4)*A - ((m^4*e^m + 2*m^3*(5*n + 2)*e^m + (35*n^2
+ 30*n + 6)*m^2*e^m + 2*(25*n^3 + 35*n^2 + 15*n + 2)*m*e^m + (24*n^4 + 50*n^3 + 35*n^2 + 10*n + 1)*e^m)*b^4*c^
4 - 4*(m^4*e^m + 2*m^3*(5*n + 2)*e^m + (35*n^2 + 30*n + 6)*m^2*e^m + 2*(25*n^3 + 35*n^2 + 15*n + 2)*m*e^m + (2
4*n^4 + 50*n^3 + 35*n^2 + 10*n + 1)*e^m)*a*b^3*c^3*d + 6*(m^4*e^m + 2*m^3*(5*n + 2)*e^m + (35*n^2 + 30*n + 6)*
m^2*e^m + 2*(25*n^3 + 35*n^2 + 15*n + 2)*m*e^m + (24*n^4 + 50*n^3 + 35*n^2 + 10*n + 1)*e^m)*a^2*b^2*c^2*d^2 -
4*(m^4*e^m + 2*m^3*(5*n + 2)*e^m + (35*n^2 + 30*n + 6)*m^2*e^m + 2*(25*n^3 + 35*n^2 + 15*n + 2)*m*e^m + (24*n^
4 + 50*n^3 + 35*n^2 + 10*n + 1)*e^m)*a^3*b*c*d^3 + (m^4*e^m + 2*m^3*(5*n + 2)*e^m + (35*n^2 + 30*n + 6)*m^2*e^
m + 2*(25*n^3 + 35*n^2 + 15*n + 2)*m*e^m + (24*n^4 + 50*n^3 + 35*n^2 + 10*n + 1)*e^m)*a^4*d^4)*B)*x*x^m + ((m^
4*e^m + m^3*(7*n + 4)*e^m + (14*n^2 + 21*n + 6)*m^2*e^m + (8*n^3 + 28*n^2 + 21*n + 4)*m*e^m + (8*n^3 + 14*n^2
+ 7*n + 1)*e^m)*A*b^4*d^4 - ((m^4*e^m + m^3*(7*n + 4)*e^m + (14*n^2 + 21*n + 6)*m^2*e^m + (8*n^3 + 28*n^2 + 21
*n + 4)*m*e^m + (8*n^3 + 14*n^2 + 7*n + 1)*e^m)*b^4*c*d^3 - 4*(m^4*e^m + m^3*(7*n + 4)*e^m + (14*n^2 + 21*n +
6)*m^2*e^m + (8*n^3 + 28*n^2 + 21*n + 4)*m*e^m + (8*n^3 + 14*n^2 + 7*n + 1)*e^m)*a*b^3*d^4)*B)*x*e^(m*log(x) +
 3*n*log(x)) - (((m^4*e^m + 4*m^3*(2*n + 1)*e^m + (19*n^2 + 24*n + 6)*m^2*e^m + 2*(6*n^3 + 19*n^2 + 12*n + 2)*
m*e^m + (12*n^3 + 19*n^2 + 8*n + 1)*e^m)*b^4*c*d^3 - 4*(m^4*e^m + 4*m^3*(2*n + 1)*e^m + (19*n^2 + 24*n + 6)*m^
2*e^m + 2*(6*n^3 + 19*n^2 + 12*n + 2)*m*e^m + (12*n^3 + 19*n^2 + 8*n + 1)*e^m)*a*b^3*d^4)*A - ((m^4*e^m + 4*m^
3*(2*n + 1)*e^m + (19*n^2 + 24*n + 6)*m^2*e^m + 2*(6*n^3 + 19*n^2 + 12*n + 2)*m*e^m + (12*n^3 + 19*n^2 + 8*n +
 1)*e^m)*b^4*c^2*d^2 - 4*(m^4*e^m + 4*m^3*(2*n + 1)*e^m + (19*n^2 + 24*n + 6)*m^2*e^m + 2*(6*n^3 + 19*n^2 + 12
*n + 2)*m*e^m + (12*n^3 + 19*n^2 + 8*n + 1)*e^m)*a*b^3*c*d^3 + 6*(m^4*e^m + 4*m^3*(2*n + 1)*e^m + (19*n^2 + 24
*n + 6)*m^2*e^m + 2*(6*n^3 + 19*n^2 + 12*n + 2)*m*e^m + (12*n^3 + 19*n^2 + 8*n + 1)*e^m)*a^2*b^2*d^4)*B)*x*e^(
m*log(x) + 2*n*log(x)) + (((m^4*e^m + m^3*(9*n + 4)*e^m + (26*n^2 + 27*n + 6)*m^2*e^m + (24*n^3 + 52*n^2 + 27*
n + 4)*m*e^m + (24*n^3 + 26*n^2 + 9*n + 1)*e^m)*b^4*c^2*d^2 - 4*(m^4*e^m + m^3*(9*n + 4)*e^m + (26*n^2 + 27*n
+ 6)*m^2*e^m + (24*n^3 + 52*n^2 + 27*n + 4)*m*e^m + (24*n^3 + 26*n^2 + 9*n + 1)*e^m)*a*b^3*c*d^3 + 6*(m^4*e^m
+ m^3*(9*n + 4)*e^m + (26*n^2 + 27*n + 6)*m^2*e^m + (24*n^3 + 52*n^2 + 27*n + 4)*m*e^m + (24*n^3 + 26*n^2 + 9*
n + 1)*e^m)*a^2*b^2*d^4)*A - ((m^4*e^m + m^3*(9*n + 4)*e^m + (26*n^2 + 27*n + 6)*m^2*e^m + (24*n^3 + 52*n^2 +
27*n + 4)*m*e^m + (24*n^3 + 26*n^2 + 9*n + 1)*e^m)*b^4*c^3*d - 4*(m^4*e^m + m^3*(9*n + 4)*e^m + (26*n^2 + 27*n
 + 6)*m^2*e^m + (24*n^3 + 52*n^2 + 27*n + 4)*m*e^m + (24*n^3 + 26*n^2 + 9*n + 1)*e^m)*a*b^3*c^2*d^2 + 6*(m^4*e
^m + m^3*(9*n + 4)*e^m + (26*n^2 + 27*n + 6)*m^2*e^m + (24*n^3 + 52*n^2 + 27*n + 4)*m*e^m + (24*n^3 + 26*n^2 +
 9*n + 1)*e^m)*a^2*b^2*c*d^3 - 4*(m^4*e^m + m^3*(9*n + 4)*e^m + (26*n^2 + 27*n + 6)*m^2*e^m + (24*n^3 + 52*n^2
 + 27*n + 4)*m*e^m + (24*n^3 + 26*n^2 + 9*n + 1)*e^m)*a^3*b*d^4)*B)*x*e^(m*log(x) + n*log(x)))/((m^5 + 5*m^4*(
2*n + 1) + 5*(7*n^2 + 8*n + 2)*m^3 + 24*n^4 + 5*(10*n^3 + 21*n^2 + 12*n + 2)*m^2 + 50*n^3 + (24*n^4 + 100*n^3
+ 105*n^2 + 40*n + 5)*m + 35*n^2 + 10*n + 1)*d^5)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x)^m*(a+b*x^n)^4*(A+B*x^n)/(c+d*x^n),x, algorithm="fricas")

[Out]

integral((B*b^4*x^(5*n) + A*a^4 + (4*B*a*b^3 + A*b^4)*x^(4*n) + 2*(3*B*a^2*b^2 + 2*A*a*b^3)*x^(3*n) + 2*(2*B*a
^3*b + 3*A*a^2*b^2)*x^(2*n) + (B*a^4 + 4*A*a^3*b)*x^n)*(x*e)^m/(d*x^n + c), x)

________________________________________________________________________________________

Sympy [C] Result contains complex when optimal does not.
time = 44.64, size = 1921, normalized size = 5.06 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x)**m*(a+b*x**n)**4*(A+B*x**n)/(c+d*x**n),x)

[Out]

A*a**4*e**m*m*x*x**m*lerchphi(d*x**n*exp_polar(I*pi)/c, 1, m/n + 1/n)*gamma(m/n + 1/n)/(c*n**2*gamma(m/n + 1 +
 1/n)) + A*a**4*e**m*x*x**m*lerchphi(d*x**n*exp_polar(I*pi)/c, 1, m/n + 1/n)*gamma(m/n + 1/n)/(c*n**2*gamma(m/
n + 1 + 1/n)) + 4*A*a**3*b*e**m*m*x*x**m*x**n*lerchphi(d*x**n*exp_polar(I*pi)/c, 1, m/n + 1 + 1/n)*gamma(m/n +
 1 + 1/n)/(c*n**2*gamma(m/n + 2 + 1/n)) + 4*A*a**3*b*e**m*x*x**m*x**n*lerchphi(d*x**n*exp_polar(I*pi)/c, 1, m/
n + 1 + 1/n)*gamma(m/n + 1 + 1/n)/(c*n*gamma(m/n + 2 + 1/n)) + 4*A*a**3*b*e**m*x*x**m*x**n*lerchphi(d*x**n*exp
_polar(I*pi)/c, 1, m/n + 1 + 1/n)*gamma(m/n + 1 + 1/n)/(c*n**2*gamma(m/n + 2 + 1/n)) + 6*A*a**2*b**2*e**m*m*x*
x**m*x**(2*n)*lerchphi(d*x**n*exp_polar(I*pi)/c, 1, m/n + 2 + 1/n)*gamma(m/n + 2 + 1/n)/(c*n**2*gamma(m/n + 3
+ 1/n)) + 12*A*a**2*b**2*e**m*x*x**m*x**(2*n)*lerchphi(d*x**n*exp_polar(I*pi)/c, 1, m/n + 2 + 1/n)*gamma(m/n +
 2 + 1/n)/(c*n*gamma(m/n + 3 + 1/n)) + 6*A*a**2*b**2*e**m*x*x**m*x**(2*n)*lerchphi(d*x**n*exp_polar(I*pi)/c, 1
, m/n + 2 + 1/n)*gamma(m/n + 2 + 1/n)/(c*n**2*gamma(m/n + 3 + 1/n)) + 4*A*a*b**3*e**m*m*x*x**m*x**(3*n)*lerchp
hi(d*x**n*exp_polar(I*pi)/c, 1, m/n + 3 + 1/n)*gamma(m/n + 3 + 1/n)/(c*n**2*gamma(m/n + 4 + 1/n)) + 12*A*a*b**
3*e**m*x*x**m*x**(3*n)*lerchphi(d*x**n*exp_polar(I*pi)/c, 1, m/n + 3 + 1/n)*gamma(m/n + 3 + 1/n)/(c*n*gamma(m/
n + 4 + 1/n)) + 4*A*a*b**3*e**m*x*x**m*x**(3*n)*lerchphi(d*x**n*exp_polar(I*pi)/c, 1, m/n + 3 + 1/n)*gamma(m/n
 + 3 + 1/n)/(c*n**2*gamma(m/n + 4 + 1/n)) + A*b**4*e**m*m*x*x**m*x**(4*n)*lerchphi(d*x**n*exp_polar(I*pi)/c, 1
, m/n + 4 + 1/n)*gamma(m/n + 4 + 1/n)/(c*n**2*gamma(m/n + 5 + 1/n)) + 4*A*b**4*e**m*x*x**m*x**(4*n)*lerchphi(d
*x**n*exp_polar(I*pi)/c, 1, m/n + 4 + 1/n)*gamma(m/n + 4 + 1/n)/(c*n*gamma(m/n + 5 + 1/n)) + A*b**4*e**m*x*x**
m*x**(4*n)*lerchphi(d*x**n*exp_polar(I*pi)/c, 1, m/n + 4 + 1/n)*gamma(m/n + 4 + 1/n)/(c*n**2*gamma(m/n + 5 + 1
/n)) + B*a**4*e**m*m*x*x**m*x**n*lerchphi(d*x**n*exp_polar(I*pi)/c, 1, m/n + 1 + 1/n)*gamma(m/n + 1 + 1/n)/(c*
n**2*gamma(m/n + 2 + 1/n)) + B*a**4*e**m*x*x**m*x**n*lerchphi(d*x**n*exp_polar(I*pi)/c, 1, m/n + 1 + 1/n)*gamm
a(m/n + 1 + 1/n)/(c*n*gamma(m/n + 2 + 1/n)) + B*a**4*e**m*x*x**m*x**n*lerchphi(d*x**n*exp_polar(I*pi)/c, 1, m/
n + 1 + 1/n)*gamma(m/n + 1 + 1/n)/(c*n**2*gamma(m/n + 2 + 1/n)) + 4*B*a**3*b*e**m*m*x*x**m*x**(2*n)*lerchphi(d
*x**n*exp_polar(I*pi)/c, 1, m/n + 2 + 1/n)*gamma(m/n + 2 + 1/n)/(c*n**2*gamma(m/n + 3 + 1/n)) + 8*B*a**3*b*e**
m*x*x**m*x**(2*n)*lerchphi(d*x**n*exp_polar(I*pi)/c, 1, m/n + 2 + 1/n)*gamma(m/n + 2 + 1/n)/(c*n*gamma(m/n + 3
 + 1/n)) + 4*B*a**3*b*e**m*x*x**m*x**(2*n)*lerchphi(d*x**n*exp_polar(I*pi)/c, 1, m/n + 2 + 1/n)*gamma(m/n + 2
+ 1/n)/(c*n**2*gamma(m/n + 3 + 1/n)) + 6*B*a**2*b**2*e**m*m*x*x**m*x**(3*n)*lerchphi(d*x**n*exp_polar(I*pi)/c,
 1, m/n + 3 + 1/n)*gamma(m/n + 3 + 1/n)/(c*n**2*gamma(m/n + 4 + 1/n)) + 18*B*a**2*b**2*e**m*x*x**m*x**(3*n)*le
rchphi(d*x**n*exp_polar(I*pi)/c, 1, m/n + 3 + 1/n)*gamma(m/n + 3 + 1/n)/(c*n*gamma(m/n + 4 + 1/n)) + 6*B*a**2*
b**2*e**m*x*x**m*x**(3*n)*lerchphi(d*x**n*exp_polar(I*pi)/c, 1, m/n + 3 + 1/n)*gamma(m/n + 3 + 1/n)/(c*n**2*ga
mma(m/n + 4 + 1/n)) + 4*B*a*b**3*e**m*m*x*x**m*x**(4*n)*lerchphi(d*x**n*exp_polar(I*pi)/c, 1, m/n + 4 + 1/n)*g
amma(m/n + 4 + 1/n)/(c*n**2*gamma(m/n + 5 + 1/n)) + 16*B*a*b**3*e**m*x*x**m*x**(4*n)*lerchphi(d*x**n*exp_polar
(I*pi)/c, 1, m/n + 4 + 1/n)*gamma(m/n + 4 + 1/n)/(c*n*gamma(m/n + 5 + 1/n)) + 4*B*a*b**3*e**m*x*x**m*x**(4*n)*
lerchphi(d*x**n*exp_polar(I*pi)/c, 1, m/n + 4 + 1/n)*gamma(m/n + 4 + 1/n)/(c*n**2*gamma(m/n + 5 + 1/n)) + B*b*
*4*e**m*m*x*x**m*x**(5*n)*lerchphi(d*x**n*exp_polar(I*pi)/c, 1, m/n + 5 + 1/n)*gamma(m/n + 5 + 1/n)/(c*n**2*ga
mma(m/n + 6 + 1/n)) + 5*B*b**4*e**m*x*x**m*x**(5*n)*lerchphi(d*x**n*exp_polar(I*pi)/c, 1, m/n + 5 + 1/n)*gamma
(m/n + 5 + 1/n)/(c*n*gamma(m/n + 6 + 1/n)) + B*b**4*e**m*x*x**m*x**(5*n)*lerchphi(d*x**n*exp_polar(I*pi)/c, 1,
 m/n + 5 + 1/n)*gamma(m/n + 5 + 1/n)/(c*n**2*gamma(m/n + 6 + 1/n))

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x)^m*(a+b*x^n)^4*(A+B*x^n)/(c+d*x^n),x, algorithm="giac")

[Out]

integrate((B*x^n + A)*(b*x^n + a)^4*(x*e)^m/(d*x^n + c), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (e\,x\right )}^m\,\left (A+B\,x^n\right )\,{\left (a+b\,x^n\right )}^4}{c+d\,x^n} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((e*x)^m*(A + B*x^n)*(a + b*x^n)^4)/(c + d*x^n),x)

[Out]

int(((e*x)^m*(A + B*x^n)*(a + b*x^n)^4)/(c + d*x^n), x)

________________________________________________________________________________________